{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="icon" href="{%  static 'img/logo.png' %}"/>
    <title>资产管理调度系统</title>
    <link href="{% static 'css/bootstrap.css' %}" rel="stylesheet">
    <link rel="stylesheet" href="{% static 'css/mmss.css' %}"/>
    <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}"/>
    <script src="{% static 'js/jquery-1.11.3.js' %}"></script>
    <script src="{% static 'js/bootstrap.js' %}"></script>

    <!--[if lt IE 9]>
    <script src="{% static 'js/html5shiv.min.js' %}"></script>
    <script src="{% static 'js/respond.min.js' %}"></script>
    <![endif]-->
    <style>

    </style>
</head>
<body>
<header>
    <div class="container-fluid navbar-fixed-top bg-primary">
        <ul class="nav navbar-nav  left">
            <li class="text-white h4">
                &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-leaf"></span>&nbsp;&nbsp;<b>资产管理调度系统</b>
            </li>
        </ul>
        <ul class="nav navbar-nav nav-pills right ">
            <li class="bg-warning ">
                <a href="#"><span class="glyphicon glyphicon-tasks"></span><span class="badge">1</span></a>
            </li>
            <li class="bg-success">
                <a href="#"><span class="glyphicon glyphicon-envelope"></span><span class="badge">2</span></a>
            </li>
            <li class="bg-danger">
                <a href="#"><span class="glyphicon glyphicon-bell"></span></a>
            </li>
            <li class="bg-info dropdown">
                <a class="dropdown-toggle" href="#" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user"></span>&nbsp;<span>{{ user.username }}</span><span class="caret"></span>
                </a>
                <ul class="dropdown-menu dropdown-menu-right">
                    <li class="text-center"><a href="#"><span class="text-primary">账号设置</span></a></li>
                    <li class="text-center"><a href="#"><span class="text-primary">消息设置</span></a></li>
                    <li class="text-center"><a href="#"><span class="text-primary">帮助中心</span></a></li>
                    <li class="divider"><a href="#"></a></li>
                    <li class="text-center"><a href="{% url 'index:logout' %}"><span class="text-primary">退出</span></a></li>
                </ul>
            </li>
        </ul>
    </div>
</header>

<section >
    <div class="container-fluid">
        <div class="row ">
            <!--左侧导航开始-->
            <div class="col-xs-2 bg-blue">
                <br/>
                <div class="panel-group sidebar-menu" id="accordion" aria-multiselectable="true">
                    <div class="panel panel-default menu-first menu-first-active">
                        <a data-toggle="collapse" data-parent="#accordion" href="index.html" aria-expanded="true"
                           aria-controls="collapseOne">
                            <i class="icon-home icon-large"></i> 主页
                        </a>
                    </div>
                    <div class="panel panel-default menu-first">
                        <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true"
                           aria-controls="collapseOne">
                            <i class="icon-user-md icon-large"></i> 系统管理</a>
                        </a>

                        <div id="collapseOne" class="panel-collapse collapse {% if shu_num == 1 %}in{% endif %}" >
                            <ul class="nav nav-list menu-second">
                                <li {% if ye_num == 1 %}class="menu-second-selected" {% endif %}><a href="{% url "index:index" %}"><i class="icon-user"></i> 资产管理</a></li>
                                <li {% if ye_num == 2 %}class="menu-second-selected" {% endif %}><a href="{% url 'index:dowload' %}"><i class="icon-edit"></i> 盘点下载</a></li>
                                <li {% if ye_num == 3 %}class="menu-second-selected" {% endif %}><a href="{% url 'index:virtual' %}"><i class="icon-user"></i> 虚拟资产</a></li>
                                <li {% if ye_num == 4 %}class="menu-second-selected" {% endif %}><a href="{% url 'index:shocrap' %}"><i class="icon-list"></i> 报废清单</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-default menu-first">
                        <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"
                           aria-expanded="false" aria-controls="collapseTwo">
                            <i class="icon-book icon-large"></i> 用户管理</a>
                        </a>
                        <div id="collapseTwo" class="panel-collapse collapse {% if shu_num == 2 %}in{% endif %} ">
                            <ul class="nav nav-list menu-second">
                                <li {% if ye_num == 5 %}class="menu-second-selected" {% endif %}><a href="{% url 'index:adduser' %}"><i class="icon-user"></i>新增管理</a></li>
                                <li {% if ye_num == 6 %}class="menu-second-selected" {% endif %}><a href="{% url 'computerstatus:updatarul' %}"><i class="icon-edit"></i>防火墙URL过滤规则</a></li>
                                <li {% if ye_num == 7 %}class="menu-second-selected" {% endif %}><a href="{% url 'computerstatus:ipassets' %}"><i class="icon-edit"></i>自动更新MAC修改</a></li>
                                <li {% if ye_num == 8 %}class="menu-second-selected" {% endif %}><a href="{% url 'computerstatus:auto' %}"><i class="icon-list"></i>每日登录接口管理</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-default menu-first">
                        <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseThree"
                           aria-expanded="false" aria-controls="collapseThree">
                            <i class="icon-book icon-large"></i> 其他管理</a>
                        </a>

                        <div id="collapseThree" class="panel-collapse collapse {% if shu_num == 3 %}in{% endif %}">
                            <ul class="nav nav-list menu-second">
                                <li {% if ye_num == 9 %}class="menu-second-selected" {% endif %}><a href="{% url 'networkstatus:statistics' %}"><i class="icon-user"></i> 在线统计</a></li>
                                <li {% if ye_num == 10 %}class="menu-second-selected" {% endif %}><a href="{% url 'networkstatus:behavior' %}"><i class="icon-edit"></i> 用户行为一览</a></li>
                                <li {% if ye_num == 11 %}class="menu-second-selected" {% endif %}><a href="{% url 'networkstatus:upnetwork' %}"><i class="icon-edit"></i> 网络状态(当前)</a></li>
                                <li {% if ye_num == 12 %}class="menu-second-selected" {% endif %}><a href="{% url 'index:sheet' %}"><i class="icon-list"></i> 盘点生成(IT专用)</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <!--左侧导航结束-->
            <!----------------------------------------------------------------------------------------------------->
            <!--右侧内容开始-->
        <div class="col-xs-10">
                <br/>
                <ol class="breadcrumb">
                    <li><a href="{% url "index:index" %}"><span class="glyphicon glyphicon-home"></span>&nbsp;后台首页</a></li>
                    <li class="active">{{ titleClass }}</li>
                </ol>
            {% block content %} {% endblock content %}
        </div>
            <!--右侧内容结束-->
        </div>
    </div>
</section>

<footer class="bg-primary navbar-fixed-bottom">
    <p class="text-center text-white">版权所有&copy;CCD</p>
</footer>

<script>
    {% block script %}  {% endblock script %}
</script>
</body>
</html>